/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Ap0stoL2
 * Date: 2023-07-26
 * Time: 8:20
 */

//测试wait
public class Demo14 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        synchronized (object){
            object.wait();
        }


        System.out.println("wait结束");
    }
}
